<?php
/**
* @description		  
* @author           tam.le
* @since			  
* @otherInformation	  
*/
class SMCore_Utilities_Mail
{
	/**
	* Constructor
	* @access		public	
	*/	
	public function mail($params)
	{
        $mailFrom       = isset($params['mailFrom']) ? $params['mailFrom'] : '';
        $mailFromName   = isset($params['mailFromName']) ? $params['mailFromName'] : '';
        $mailTo         = isset($params['mailTo']) ? $params['mailTo'] : ''; 
        $mailToName     = isset($params['mailToName']) ? $params['mailToName'] : '';
        $adminMail      = isset($params['adminMail']) ? $params['adminMail'] : '';
        $mailSubject    = isset($params['mailSubject']) ? $params['mailSubject'] : '';
        $htmlcontent    = isset($params['htmlcontent']) ? $params['htmlcontent'] : '';
        /**
         * Zend_Mail
         */
        $mail = new Zend_Mail();
        $mail->setFrom($mailFrom, $mailFromName);
        $mail->addTo($mailTo, $mailToName);
        $mail->addCc($adminMail);
        $mail->setSubject($mailSubject);
        $mail->setBodyHtml($htmlcontent);
        try{
            $mail->send();
        } catch (Exception $e) {}
	}
}
?>